home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ultra Mac Games 1 & 2
/
UltraMacGames1.iso
/
Adventure
/
HyperSpace Traders
/
HyperSpace Traders
/
background_6052.txt
< prev
next >
Wrap
Text File
|
1989-03-08
|
9KB
|
366 lines
-- background: 6052 from stack: in
-- bmap block id: 6452
-- flags: 4000
-- background id: 0
-- name: Port
-- part 1 (field)
-- low flags: 80
-- high flags: 0007
-- rect: left=0 top=227 right=342 bottom=510
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Port Info
-- part 2 (field)
-- low flags: 01
-- high flags: 2002
-- rect: left=115 top=26 right=209 bottom=394
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Port Text Field
-- part 3 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=24 top=40 right=57 bottom=83
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 2
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Sector
----- HyperTalk script -----
on closeField
global currentSector
put bkgnd field id 2 into currentSector
end closeField
-- part 4 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=5 top=84 right=101 bottom=102
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 2
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Sector
----- HyperTalk script -----
on closeField
global currentSector
put bkgnd field id 2 into currentSector
end closeField
-- part 5 (field)
-- low flags: 01
-- high flags: 4000
-- rect: left=46 top=295 right=310 bottom=117
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Credits
-- part 6 (field)
-- low flags: 01
-- high flags: 4000
-- rect: left=166 top=280 right=295 bottom=221
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Organics
-- part 7 (field)
-- low flags: 01
-- high flags: 4000
-- rect: left=166 top=296 right=311 bottom=220
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Equipment
-- part 8 (field)
-- low flags: 01
-- high flags: 4000
-- rect: left=321 top=279 right=294 bottom=375
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Ore
-- part 9 (field)
-- low flags: 01
-- high flags: 4000
-- rect: left=321 top=296 right=311 bottom=375
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Empty Holds
-- part 10 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=153 top=250 right=266 bottom=337
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Ship's Name
-- part 11 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=4 top=124 right=165 bottom=104
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Buying
----- HyperTalk script -----
on closeField
global currentSector
put bkgnd field id 2 into currentSector
end closeField
-- part 12 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=4 top=182 right=236 bottom=105
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Selling
----- HyperTalk script -----
on closeField
global currentSector
put bkgnd field id 2 into currentSector
end closeField
-- part 13 (field)
-- low flags: 01
-- high flags: 4000
-- rect: left=62 top=315 right=330 bottom=117
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Cloaking Device
-- part 19 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=462 top=150 right=165 bottom=501
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Number
-- part 20 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=418 top=185 right=201 bottom=495
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Number
-- part 21 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=413 top=242 right=267 bottom=502
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Leave Port
----- HyperTalk script -----
on mouseUp
global currentPlayer,currentPort
set cursor to 4
lock screen -- script to install changed port inventory values:
if word 3 of the id of this card = "6144" then
repeat with x = 1 to the number of lines of bkgnd field id 1
if item 1 of line x of bkgnd field id 1 = currentPort then
if word 1 of line 1 of bkgnd field id 11 ≠ 0 then put ((word 1 of line 1 of bkgnd field id 11)+5) into item 3 of line x of bkgnd field id 1
if word 1 of line 2 of bkgnd field id 11 ≠ 0 then put ((word 1 of line 2 of bkgnd field id 11)+5) into item 4 of line x of bkgnd field id 1
if word 1 of line 3 of bkgnd field id 11 ≠ 0 then put ((word 1 of line 3 of bkgnd field id 11)+5) into item 5 of line x of bkgnd field id 1
if word 1 of line 1 of bkgnd field id 12 ≠ 0 then put ((word 1 of line 1 of bkgnd field id 12)+5) into item 6 of line x of bkgnd field id 1
if word 1 of line 2 of bkgnd field id 12 ≠ 0 then put ((word 1 of line 2 of bkgnd field id 12)+5) into item 7 of line x of bkgnd field id 1
if word 1 of line 3 of bkgnd field id 12 ≠ 0 then put ((word 1 of line 3 of bkgnd field id 12)+5) into item 8 of line x of bkgnd field id 1
exit repeat
end if
end repeat
end if
put bkgnd field id 3 into sectorID
-- script to load inventory variables:
put bkgnd field id 5 into credits
put bkgnd field id 6 into organics
put bkgnd field id 7 into equipment
put bkgnd field id 8 into ore
put bkgnd field id 9 into holds
put bkgnd field id 22 into turns
put bkgnd field id 23 into fighters
put bkgnd field id 13 into cloak
repeat with x = 2 to 17
put empty into bkgnd field x
end repeat
go card currentPlayer -- install changed inventory variables
put credits into bkgnd field id 7
put organics into bkgnd field id 17
put equipment into bkgnd field id 18
put ore into bkgnd field id 19
put holds into bkgnd field id 20
put turns into bkgnd field id 23
put fighters into bkgnd field id 22
put cloak into bkgnd field id 36
put "Sector"&& sectorID && " - Port: " && currentPort into line 1 of bkgnd field id 21
play "spray"
unlock screen with visual effect iris close
set cursor to 1
end mouseUp
-- part 22 (field)
-- low flags: 01
-- high flags: 4000
-- rect: left=215 top=315 right=330 bottom=269
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Turns
-- part 23 (field)
-- low flags: 01
-- high flags: 4000
-- rect: left=321 top=315 right=330 bottom=375
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Fighters
-- part 24 (field)
-- low flags: 81
-- high flags: 0002
-- rect: left=11 top=23 right=142 bottom=344
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Home Ports Info
-- part 25 (field)
-- low flags: 81
-- high flags: 0000
-- rect: left=5 top=242 right=315 bottom=47
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Current Prices Field
-- part 28 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=115 top=213 right=231 bottom=229
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: